package com.mine.modules.vm.service;


import com.mine.common.repository.base.Thumbnail;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface IThumbnail {

	Thumbnail save(Thumbnail entity);

	void deleteById(String id);

	void deleteBatch(String deviceId);

	Thumbnail findById(String id);
	
	List<Thumbnail> findList();
	
	List<Thumbnail> findListByType(String type);
	
	List<Thumbnail> findByIdStartingWith(String regionId);

	String uploadFile(MultipartFile file) throws IOException;

	byte[] downloadFile(String fileId);
}
